<%-- 
    Document   : VistaBeneficiados
    Created on : 09-09-2012, 04:19:56 PM
    Author     : Alex
--%>

<%@page import="java.math.BigDecimal"%>
<%@page import="java.util.List"%>
<%@page import="com.uca.sisbec.mapping.Gasto"%>
<%@page import="com.uca.sisbec.beans.NameAndCarnetBean"%>


<%
    Gasto g = (Gasto) request.getAttribute("objGasto");
    List<NameAndCarnetBean> listBecBenef = (List<NameAndCarnetBean>) request.getAttribute("listaBecs");
%>

<html>
    <head>
        <title></title>
        <style>
            #hor-zebra
            {
                font-family: "Lucida Sans Unicode", "Lucida Grande", Sans-Serif;
                font-size: 12px;
                margin: 45px;
                width: 480px;
                border-style: solid;
            }
            #hor-zebra th
            {
                font-size: 14px;
                font-weight: normal;
                padding: 10px 8px;
                color: #039;
                text-align: left;
            }
            #hor-zebra td
            {
                padding: 8px;
                color: #669;
            }
            #hor-zebra .odd
            {
                background: #e8edff; 
            }
            #hor-zebra .recNo
            {
                font-variant: small-caps;
                font-size: 14px;
                font-weight: bold;
                text-align: center;
            }
        </style>
    </head>
    <body>
        <table id="hor-zebra">
            <tr>
                <th colspan="2"><img src="./images/logo_recs.PNG" /></th>
            </tr>
            <tr class="odd">
                <th colspan="2">Programa de Becas</th>
            </tr>
            <tr>
                <td class="recNo" colspan="2">Becarios beneficiados</td>
            </tr>
            <tr class="odd">
                <td>Concepto:&nbsp;</td><td><%= g.getConcepto() %></td>
            </tr>
            <tr>
                <td>Monto:&nbsp;</td><td>$<%= g.getMonto().toString() %></td>
            </tr>
            <tr class="odd">
                <td>Becarios beneficiados:</td>
                <td>
                    <%
                        for(int i = 0; i < listBecBenef.size(); i++) {
                            out.print(listBecBenef.get(i).getNameAndCarnet() + "<br />");
                        }
                    %>
                </td>
            </tr>
        </table>
    </body>
</html>